using System;
using System.Collections.Generic;
using System.Text;

namespace IGlobalist.Cms.Model
{
    [Serializable]
    public class ContentNote : CmsObject, IContentNote
    {
        #region IXml Members

        private ActionType _ActionType = ActionType.None;
        public ActionType ActionType
        {
            get
            {
                return _ActionType;
            }
            set
            {
                _ActionType=value;
            }
        }

        public NoteType Type
        {
            get
            {
                return (NoteType)Enum.Parse(typeof(NoteType), (string)this.GetExtPropertyValue("Type"));
            }
            set
            {
                SetExtPropertyValue("Type", value);

            }
        }

        private string _authorName;
        public string AuthorName
        {
            get
            {
                return _authorName;
            }
            set
            {
                _authorName = value;
            }
        }
        public bool FromXml(string xml)
        {
            throw new Exception("The method or operation is not implemented.");
        }

        public string ToXmlString()
        {
            throw new Exception("The method or operation is not implemented.");
        }

        #endregion
        #region ICmsObject Members


        public bool FromCmsObject(CmsObject obj)
        {
            return base.FromCmsObject(obj);
        }

              #endregion

        #region IContentNote Members

        

        #endregion
    }
}
